package ast;

public class IfNode extends StmtNode{

	public ExprNode expr;
	public BodyNode ifBody;
	public BodyNode elseBody;

    public IfNode(ExprNode expr, BodyNode ifBody, BodyNode elseBody){
        this.left = null;
        this.right = null;
    	this.expr = expr;
        this.ifBody = ifBody;
        this.elseBody = elseBody;
    }

    public Object accept(Visitor v){
        return v.visit(this);
    }

}